package com.briup.common.exception;

import com.briup.common.response.CodeAndMessageEnum;
import lombok.Data;

@Data
public class SystemException extends RuntimeException{

    /**
     * 错误响应枚举
     */
    private CodeAndMessageEnum codeAndMessage;




    /**
     * 构造器
     */
    public SystemException(CodeAndMessageEnum codeAndMessage) {
        this.codeAndMessage = codeAndMessage;
    }


    public SystemException(String message, CodeAndMessageEnum codeAndMessage) {
        super(message);
        this.codeAndMessage = codeAndMessage;
    }
}
